    <!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<style type="text/css">
    input{
        height: 30px;
    }
    #test1{
        width: 300px;
    }
    #a{
        text-decoration:none;
    }
</style>
<body>
<form id="myForm" action="/addOrders" method="post">
    <table  width="600px" height="150px">
        <tr align="left">
            <td><b>请选择维修人员</b></td>
            <td>
                <select name="employeeid" id="type">
                    <!--<option></option>-->
                </select>
            </td>
        </tr>
        <tr align="left">
            <td colspan="2">
                <input type="submit" value="提交" id="agreementSub" />
                <a href="/admin/makeanappointment.html" id="a"><input type="button" value="返回"/></a>
            </td>
        </tr>
        <tbody id="TableData" class="datas">

        </tbody>
    </table>
</form>
</body>
<script type="text/javascript" src="assets/js/jquery-2.1.1.min.js"></script>
<script type="text/javascript">
    $(function(){
        $("select").css("width","275px");
        $("select").css("height","40px");
        $.ajax({
            url:"/queryEmployee",
            type:"post",
            dataType:"json",
            async:false,
            success:function (data) {
                if(data){
                    for(var i=0;data.length;i++){
                        var d=data[i];
                        $("select").append("<option value='"+d.employeeid+"'>"+d.employeename+"</option>");
                    }
                }
            }
        });
    });
</script>
</html>
